<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>父子组件-传递数据</title>
    <script src="https://cdn.staticfile.org/vue/2.2.2/vue.js"></script>
</head>
<body>
<div id="case13-demo5">
    <child-component msg="我是父组件的内容"></child-component>
</div>
<script type="text/javascript">
    var case13Demo5=new Vue({
        el:"#case13-demo5",
        data:{},
        components:{
            "child-component":{
                props:['msg'],
                template:"<div>{{msg}}</div>"
            }
        }
    })
</script>
</body>
</html>